package com.kaifamiao.demo.d0811;

public class Account {

    private Long cardId;

    private String password;

    private double money;

    private String name;

    public Account() {
    }

    public Account(Long cardId, String password, double money, String name) {
        this.cardId = cardId;
        this.password = password;
        this.money = money;
        this.name = name;
    }

    public Long getCardId() {
        return cardId;
    }

    public void setCardId(Long cardId) {
        this.cardId = cardId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void show(){
        System.out.println("Account{" +
                "cardId=" + cardId +
                ", password='" + password + '\'' +
                ", money=" + money +
                ", name='" + name + '\'' +
                '}');
    }

    @Override
    public String toString() {
        return "Account{" +
                "cardId=" + cardId +
                ", money=" + money +
                ", name='" + name + '\'' +
                '}';
    }
}
